<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>WebSoket Demo</title>
		<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous" />
		<script src="js/WebSocket.js" type="text/javascript" charset="utf-8"></script>
	</head>

	<body onload="Display()" class="container">
		<div id="valueLabel" class="form-group"></div>

		<textarea class="form-control" rows="20" cols="30" id="contentId"></textarea><br/>

		<div class="form-group">
			<input class="form-control" name="wsUrl" id="wsUrlId" value="ws://192.168.1.126:7272" />
		</div>

		<input class="form-control" name="message" id="messageId" value="Hello, Server!" />

		<hr>

		<div class="form-group">
			<button class="btn btn-info btn-block" id="createButton" onClick="javascript:CreateConnect()">连接</button>
			<button class="btn btn-info btn-block" id="closeButton" onClick="javascript:CloseConnect()">关闭</button>
			<button class="btn btn-info btn-block" id="sendButton" onClick="javascript:SendMsg()">发送消息</button>
			<button class="btn btn-info btn-block" id="sendButton" onClick="javascript:getInfo()">获取关数，次数，命数信息</button>
			<button class="btn btn-info btn-block" id="sendButton" onClick="javascript:bottle()">撞到瓶子</button>
			<button class="btn btn-info btn-block" id="sendButton" onClick="javascript:cloud()">撞到云</button>
			<button class="btn btn-info btn-block" id="sendButton" onClick="javascript:done()">结算</button>
		</div>
	</body>

</html>